package com.blacktea.creationalpatterns.builderpattern.ms;

import com.blacktea.creationalpatterns.builderpattern.pojo.User;
import com.blacktea.creationalpatterns.builderpattern.pojo.UserEntity;
import org.mapstruct.Mapper;

/**
 * @description:
 * @author: black tea
 * @date: 2023/3/19 20:17
 */
@Mapper(componentModel = "spring")
public interface UserMapper {

    UserEntity toEntity(User user);

    User toUser(UserEntity entity);
}
